package com.xwli.business.strategy;

import com.xwli.business.strategy.factory.AwardStrategyFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xwli
 * @date: 2022/8/18 15:25
 * @desc
 * @since JDK 1.8
 */
@RestController
@RequestMapping("/activity")
public class ActivityController {

    @PostMapping("/reward3")
    public void reward3(String userId, String source) {
        AwardStrategyFactory.getInstance().getAwardResult(userId, source);
    }
}
